home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / comm misc / DirectLink 1.1 / DirectLink.exe / Readme.txt < prev   
Encoding:
Text File  |  1999-03-17  |  4.1 KB  |  103 lines

  1. DirectLink 1.0
  2.  
  3. Was motivated by a small omission from the Prefs panel for setting up a PPP conection
  4. directly through a serial cable without a modem, which for development of network apps
  5. will come in very handy since you don't need to be on the phone all day. I have recently 
  6. learned that the magic phone number 00 will do the trick, but that you are limited to 19200bps.
  7. DirectLink will allow you to select baudrate upto 57600.
  8.  
  9. I have tested the program with Linux Redhat 4.1. Windows NT RAS should work as well.
  10.  
  11. You can probably get away without having chat scripts, but I think it's nicer to have one
  12. than always having to start pppd manually on the Linux box.
  13.  
  14. Here is what you need to setup on Linux to use a chat script:
  15.  
  16. 1. Make sure you have the getty program on your system, my Redhat 4.1 didn't have it
  17. and I had to download the package and install it.
  18.  
  19. 2. Add the getty to your /etc/inittab, typical entry:
  20.  
  21.     7:2345:respawn:/sbin/getty ttyS0 DT38400    #change according to your port and speed
  22.                             #ttyS0 == Com1 ttyS1== Com2
  23.          
  24. 3. If you want to use 57600bps, you need to have your serial port set to spd_hi
  25. with the following command (you probably want to add it to your /etc/rc.d/rc.local ) 
  26.  
  27.     set_serial /dev/ttyS0 spd_hi
  28.     
  29. This will cause the baudrate request of DT38400 to be translated to 57600.
  30.  
  31. 4. Run "init q" command and check that getty is running either by "ps aux" and/or by
  32. using  terminal program like PalmTerm to login to the box as some user. Of course you need 
  33. to have a pilot modem cable with a null modem adapter and an additional modem cable to extend 
  34. the reach, unless you like spending time under your desk. Or,  I think the cradle can be
  35. used instead, though I haven't tried it.
  36.  
  37. 5. Once you can login on the serial port, it would make things easier if you add an
  38. alias for the pppd command to the user's .bashrc or .profile, depending on the shell:
  39.  
  40.     alias ppp="exec /usr/sbin/pppd -detach debug"
  41.  
  42. 6. Your /etc/ppp/options should have:
  43.     lock
  44.     crtcts
  45.  
  46. 7. Your /etc/ppp/options.ttyS0  (change the file name according to the tty you are using)
  47. contains options specific to the port. This is where I assign the IP addresses for the link.
  48. You can do it differently, and set them on the pilot, I haven't tried it. So the file
  49. contains (change them to the desired ip addresses) :
  50.  
  51. #linuxaddress:pilotaddress
  52. 192.168.1.1:192.168.1.2
  53.  
  54.  
  55. Pilot Setup:
  56.  
  57. 1. In Prefs/Network, make a duplicate of the Unix Service. enter any appropriate
  58. information like the user and password and any additional . If you did step 7 above, then
  59. check the box for auto IP adresses. No need to bother with modem stuff.
  60.  
  61. 2. Change the chat script to be:
  62.  
  63. send cr:
  64. send cr:
  65. wait for:ogin:
  66. send User ID:
  67. send cr:
  68. wait for: word:
  69. send Password:
  70. send cr:
  71. wait for:$               (or whatever your shell prompt is )
  72. send: ppp                (this is the alias for the the ppp command which starts pppd)
  73. send cr:
  74.  
  75.  
  76. Running DirectLink
  77.  
  78. 1. DirectLink always connects with the last used Service.  Make sure that you try to connect using this Unix copy
  79. Service from the Prefs app to set the Service to be used by DirectLink.
  80. This will fail since you did not set up a a phonenumber or modem, but is required for running
  81. DirectLink. After another service is used to make a connection, you have to retry
  82. connecting with the Unix copy service before running DirectLink.
  83. 2. To disconnect the connection, use the Prefs App disconnect button.
  84.  
  85.  
  86. Troubleshooting
  87.  
  88. If you run into problems, look in the /var/log/messages or /usr/adm/messages or wherever 
  89. your system syslogs.  You should see messages about the fact that the user has logged in
  90. and messages from the pppd starting and negotiating ip address. This should clue you in
  91. on what's going on.  
  92.  
  93. If you know you your getty is working, because you verified it with PalmTerm, and the 
  94. connection fails, but you don't see any messages in your log files, then a problem with
  95. the chat script is a good possibility for the source of the problem.
  96.  
  97. Good luck,
  98.  
  99. Metasync Inc.
  100. info@metasync.com
  101. http://www.metasync.com
  102.  
  103.